package com.adinnet.admin.product.mapper;

import com.adinnet.admin.product.model.Product;
import com.adinnet.admin.product.model.vo.ProductReq;
import com.adinnet.admin.product.model.vo.ProductResp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品表 Mapper 接口
 * </p>
 *
 * @author liukp
 * @since 2020-07-02
 */
public interface ProductMapper extends BaseMapper<Product> {

    List<ProductResp> list(Page<?> iPage, @Param("productReq") ProductReq productReq);

    Integer solOutProduct(@Param("id") Integer id,@Param("status") Integer status);

    Integer delProduct(@Param("id") Integer id);
}
